import React from "react";
import './BoradTitle.css'

const BorderTitle = (props)=>{
  const { BoardText, ButtonFun, ButtonHidden } = props

  if (ButtonHidden) {
    return (
      <div className="BorderTitleWhole">
        <p className="BorderTitleWhole_P">{BoardText}</p>
      </div>
    )
  }
  return (
    <div className="BorderTitleWhole">
      <p className="BorderTitleWhole_P">{BoardText}</p>
      <button className="BorderTitleWhole_Button" onClick={ButtonFun}>{'>'}</button>
    </div>
  )
}

export default BorderTitle